package com.yixiang.np.dao;

import java.util.List;
import java.util.Map;

import com.yixiang.np.model.po.Role;

public interface RoleDao {

	public List<Role> findAll(Map<String, Object> params);
	
	public Long count(Map<String, Object> params);
	
	public void add(Role r);
	
	public void delete(Long id);
	
	public void update(Role r);
	
	public Role get(Long id);
	
	public List<String> getResourceIds(Long id);
	
	public void saveGrant(Map<String, Object> params);
	
	public void deleteRoleResource(Long id);
	
	public void deleteRoleUser(Long id);
}
